home *** CD-ROM | disk | FTP | other *** search
/ Symantec Visual Cafe for Java 2.5 / symantec-visual-cafe-2.5-database-dev-edition.iso / Visual Cafe Pro v1.0 / SOURCE.BIN / VerticalLine.java < prev    next >
Encoding:
Java Source  |  1997-06-19  |  1.0 KB  |  39 lines

  1. package symantec.itools.awt.shape;
  2.  
  3. /**
  4.  * This is a vertical line component.
  5.  * @version 1.0, Nov 26, 1996
  6.  * @author Symantec
  7.  */
  8.  
  9. public class VerticalLine
  10.     extends Rect
  11. {
  12.     /**
  13.      * Constructs a default VerticalLine.  The line width is 2.
  14.      */
  15.     public VerticalLine()
  16.     {
  17.         width = 2;
  18.     }
  19.  
  20.     /**
  21.      * Moves and/or resizes this component.
  22.      * This is a standard Java AWT method which gets called to move and/or
  23.      * resize this component. Components that are in containers with layout
  24.      * managers should not call this method, but rely on the layout manager
  25.      * instead.
  26.      *
  27.      * @param x horizontal position in the parent's coordinate space
  28.      * @param y vertical position in the parent's coordinate space
  29.      * @param width the new width
  30.      * @param height the new height
  31.      */
  32.     public void reshape(int x, int y, int width, int height)
  33.     {
  34.         this.height = height;
  35.  
  36.         super.reshape(x, y, this.width, height);
  37.     }
  38. }
  39.